export const promises = ['ss', 'sss', 'ssss'].map((s) => {
  return new Promise((resolve, reject) => {
    if (s.length == 3) {
      reject(s.length);
    }
    resolve(s.length);
  });
});
Promise.allSettled(promises).then(values => {
  console.log(values.filter(value => value.status == 'fulfilled'));
})
